home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / setcurs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  452 b   |  25 lines

  1. /*
  2. ** setcurs.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include <dos.h>
  9. #include "pictor.h"
  10.  
  11. /*
  12. ** Sets the text cursor position.
  13. */
  14. void setcurs(int row,int column)
  15. {
  16.     union REGS regs;
  17.  
  18.     regs.h.ah = 0x02;
  19.     regs.h.bh = (unsigned char)_PL_page;
  20.     regs.h.dh = (unsigned char)(row - 1);
  21.     regs.h.dl = (unsigned char)(column - 1);
  22.     int86(0x10,®s,®s);
  23.  
  24. } /* setcurs */
  25.